home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_land garrison.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  866 b   |  47 lines

  1. //
  2. //    Land Garrison AI file
  3. //
  4. //    Behaviors:
  5. //
  6. //        Path to passengers.  Let them load.  Path to unload point.  Unload passengers
  7. //
  8. //    Notes:
  9. //        This overloads a few of the generic movement actions
  10. //
  11. //    Known Problems:
  12. //
  13. //    Usage:
  14. //
  15. //        To tell a unit to move to a location, give it a load/unload transport goal (EEUGLoad/UnloadTransport)
  16. //            and set its action to keeuaPrepareToMove.
  17. //
  18.  
  19. #include("Simple Building.tai")
  20.  
  21.  
  22. GarrisonUpgrade
  23. {
  24.     GoalIsLoadContainer true(Idle)
  25. }
  26.  
  27. PrepareToMove
  28. {
  29.     GoalIsLoadGarrison true(PickedUpLoadableUnits)
  30. }
  31.  
  32. ReacquireGoal
  33. {
  34.     allof(GoalIsLoadGarrison,GarrisonCostMet) true(GarrisonUpgrade) false(WaitForGarrisonCost)
  35. }
  36.  
  37. WaitForGarrisonCost
  38. {
  39.     GarrisonCostMet true(GarrisonUpgrade)
  40. }
  41.  
  42. #include("Load Container.tai")
  43.  
  44. PickedUpLoadableUnits
  45. {
  46.     NoMoreLoadableUnitsToPickUp remove() 
  47. }